<template>
    <div class="container">
        <superlotto v-if="pageType === 'super-lotto'"></superlotto>
        <unionLotto v-if="pageType === 'union-lotto'"></unionLotto>
        <pai-three v-if="pageType === 'pai-three'"></pai-three>
    </div>
</template>

<script>
import paiThree from "../../components/lotteries/paiThree";
const storage = weex.requireModule("storage");
const modal = weex.requireModule("modal");
import { serialize, getBaseUrl,jsonAnalysis }  from "@/utils/index.js"

export default {
  components: {
    paiThree
  },

  data() {
    return {
      pageType: ""
    };
  },
  created() {},
  methods: {
    getUrlParam() {
      var url = decodeURI(weex.config.bundleUrl); //取得整个地址栏
      let query1 = jsonAnalysis(url.split('?')[1]);
      this.pageType = query1.pageType;
    }
  },
  mounted() {
    this.getUrlParam();
  }
};
</script>

<style scoped>
</style>